<?php
	App::import("Controller","Config.BaseConfig");
	class SociableConfigController extends BaseConfigController
	{
		var $name = "SociableConfig";
		
		function admin_setting($modelName)
		{
			$models = array("Facebook","Twitter","Linkedin");
			if(in_array($modelName,$models) == false || cr($modelName.".enabled") != true)
			{
				$this->redirect($this->referer('/admin'));
			}
			$configModel = cri("Sociable.".$modelName."Config");
			$this->{$configModel->alias} = $configModel;
			$this->configModelAlias = $configModel->alias;
			$this->pageTitle = __("$modelName Config");
			parent::admin_setting($modelName);
		}
	}
?>